package com.ruoyi.smart.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 故障对象 smart_fault
 * 
 * @author minwei
 * @date 2022-04-07
 */
public class SmartFault extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** $column.columnComment */
    private Long id;

    /** 组织机构编号 */
    @Excel(name = "组织机构编号")
    private String organizationId;

    /** 创建人编号 */
    @Excel(name = "创建人编号")
    private String createUserId;

    /** 创建日期 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "创建日期", width = 30, dateFormat = "yyyy-MM-dd")
    private Date createDate;

    /** 状态 */
    @Excel(name = "状态")
    private String state;

    /** 故障编码 */
    @Excel(name = "故障编码")
    private String faultCode;

    /** 故障名称 */
    @Excel(name = "故障名称")
    private String faultName;

    /** 解决方式 */
    @Excel(name = "解决方式")
    private String solveFunction;

    /** 故障原因 */
    @Excel(name = "故障原因")
    private String faultReason;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setOrganizationId(String organizationId) 
    {
        this.organizationId = organizationId;
    }

    public String getOrganizationId() 
    {
        return organizationId;
    }
    public void setCreateUserId(String createUserId) 
    {
        this.createUserId = createUserId;
    }

    public String getCreateUserId() 
    {
        return createUserId;
    }
    public void setCreateDate(Date createDate) 
    {
        this.createDate = createDate;
    }

    public Date getCreateDate() 
    {
        return createDate;
    }
    public void setState(String state) 
    {
        this.state = state;
    }

    public String getState() 
    {
        return state;
    }
    public void setFaultCode(String faultCode) 
    {
        this.faultCode = faultCode;
    }

    public String getFaultCode() 
    {
        return faultCode;
    }
    public void setFaultName(String faultName) 
    {
        this.faultName = faultName;
    }

    public String getFaultName() 
    {
        return faultName;
    }
    public void setSolveFunction(String solveFunction) 
    {
        this.solveFunction = solveFunction;
    }

    public String getSolveFunction() 
    {
        return solveFunction;
    }
    public void setFaultReason(String faultReason) 
    {
        this.faultReason = faultReason;
    }

    public String getFaultReason() 
    {
        return faultReason;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("organizationId", getOrganizationId())
            .append("createUserId", getCreateUserId())
            .append("createDate", getCreateDate())
            .append("state", getState())
            .append("faultCode", getFaultCode())
            .append("faultName", getFaultName())
            .append("solveFunction", getSolveFunction())
            .append("faultReason", getFaultReason())
            .toString();
    }
}
